package top.aicats.pattern.factory.MethodFactory;

import top.aicats.pattern.factory.ICourse;

public class MethodFactoryTest {
    public static void main(String[] args) {
        IFactory factory = new JavaFactory();
        ICourse course = factory.create();
        course.Record();

        IFactory factory2 = new PythonFactory();
        ICourse course2 = factory2.create();
        course2.Record();
    }
}
